package com.sxhuayuan.parking.plugin.parking.dahua.request;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 大华预支付算费请求类
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class DaHuaBeforehandFeeRequest {
	// 车牌号
	private String carNum;
	// 车讯类型 默认传1
	private Integer queryType;
	// N 停车场编号, 可不传
	private String parkingLotCode;

	/* 缴费成功通知需要的字段 */
	// 应收金额
	private String consumeMoney;
	// 实收金额
	private String feeAmount;

	/* 收费成功通知需要的字段 */
	// 道闸设备编码
	private String deviceCode;

	// 请求算费
	public DaHuaBeforehandFeeRequest(String carNum, Integer queryType) {
		this.carNum = carNum;
		this.queryType = queryType;
	}

	// 请求算费
	public DaHuaBeforehandFeeRequest(String carNum, Integer queryType, String parkingLotCode) {
		this.carNum = carNum;
		this.queryType = queryType;
		this.parkingLotCode = parkingLotCode;
	}

	// 缴费成功通知 (预支付)
	public DaHuaBeforehandFeeRequest(String carNum, String consumeMoney, String feeAmount) {
		this.carNum = carNum;
		this.consumeMoney = consumeMoney;
		this.feeAmount = feeAmount;
	}

	// 缴费成功通知 (预支付)
	public DaHuaBeforehandFeeRequest(String carNum, String parkingLotCode, String consumeMoney, String feeAmount) {
		this.carNum = carNum;
		this.parkingLotCode = parkingLotCode;
		this.consumeMoney = consumeMoney;
		this.feeAmount = feeAmount;
	}

	// 收费成功通知 (扫出口扫码)
	public DaHuaBeforehandFeeRequest(String feeAmount, String deviceCode) {
		this.feeAmount = feeAmount;
		this.deviceCode = deviceCode;
	}
}
